package com.teaching.management.repository;

import com.teaching.management.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface StudentRepository extends JpaRepository<Student, String> {
    Student findByUserId(Integer userId);

    long count();
}